package com.beiyou.dao;

import com.beiyou.model.Tuku;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author: King-lby
 * @Date Created in 2022-11-29 17:32
 */
@Mapper
public interface TukuDao {

    @Insert("insert into a_tuku (name,img) values (#{name},#{img})")
    int insert(Tuku tuku);

    @Select(" select id, name,img from a_tuku")
    List<Tuku> select();
}
